home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / disk-tools / harddisk / quiet-scsi / quietscsi.doc < prev    next >
Text File  |  1996-02-26  |  12KB  |  280 lines

  1.                                  QuietSCSI
  2.  
  3.             a program to prevent SCSI drivesfrom making noise
  4.  
  5.                                 release 1.1
  6.  
  7.                     by Franz-Josef Reichert, 10/20/1995
  8.  
  9.  
  10. UNLESS OTHERWISE NOTED, ALL FILES ARE Copyright © 1994-95 by F.J. Reichert.
  11. All  Rights  Reserved.  WARNING:  THIS IS *NO* PUBLIC DOMAIN PROGRAM, BUT A
  12. COPYRIGHTED PIECE OF SOFTWARE.
  13.  
  14. Franz-Josef Reichert
  15. Kuchlingerstraße 13
  16. D-66271 Kleinblittersdorf, GERMANY
  17. FAX:   +49-6805-218101
  18. eMail: fjrei@kbsaar.saar.de
  19.  
  20. *** WHAT'S NEW FOR 1.1? ***
  21.  
  22.     This is release 1.1 of QuietSCSI. A release which shouldn't have
  23. happened at all, though, since only two (2) people actually sent me a
  24. donation for my work. Would you care about to invest further development,
  25. time, money to a project only two people are interested in? Well, I'm a
  26. hopelessly amiga addicted fool, so *I* did!
  27.  
  28.     Please, make me believe that it's worth even more effort! ;-)
  29.  
  30.     MANY more people asked for more features. I had to answer several
  31. dozends of questions, but nearly all people obviously using my program all
  32. days never sent a donation. Anyway, the most popular enhancement requests
  33. made their way into this release:
  34.  
  35. · Recognizes "special" drivers "ALF.device" and "oktagon.device" and
  36. handles them properly. In earlier versions, QuietSCSI refused to work on
  37. those hostadapters if there was more than one SCSI target installed. On the
  38. other hand, Oliver Kastl (the programmer of the original ALF-software) told
  39. me that there's some QuietSCSI-like feature already built in, so there
  40. should be no need to use QuietSCSI with this software, anyway. Don't ask
  41. me...
  42.  
  43. · Additional code to make removable media user happy (well, almost), such
  44. as SyQuest or some other magnetooptical toys. It was introduced in
  45. QuietSCSI 1.1. Removable media support *is* tricky. Shortly after the drive
  46. is turned off, a requester will appear on workbench screen to ask for
  47. restart (you need at least 2.0 ROMs (V37)). The choice is to leave the
  48. requester hanging around as you like or satisfy it, which will result in a
  49. restart. As long as the requester is up, all driver related commands will
  50. be queued until the request is satisfied. This will of course suspend any
  51. command waiting for queued driver requests to complete. For example, issue
  52. the command "C:Info", "C:Dir" etc. and it will not return until a pending
  53. restart requester is satisfied. Warning: Workbench might even be blocked!
  54. On the other hand, note that the drive will never be stopped when there is
  55. no medium inserted. This is usually no problem since most changeable media
  56. drives stop their motors in this case, anyway.
  57.  
  58.     +-------------------------------+
  59.     | QuietSCSI            |
  60.     +-------------------------------+
  61.     |                |
  62.     | Restart requested on        |
  63.     |                |
  64.     | removable media        |
  65.     |                |
  66.     | "scsi.device" unit 0        |
  67.     |                |
  68.     +-------------------------------+
  69.     |          +---------+        |
  70.     |          | Restart |        |
  71.     |          +---------+        |
  72.     +-------------------------------+
  73.  
  74. If you consider the requesters and the necessary (manual) restart a
  75. problem, please don't use QuietSCSI on these drives at all! Other than some
  76. people might think, this topic needs *no* further discussion. It's a matter
  77. of fact that the filesystem will always try to re-read a volume directory
  78. tree once it received a diskchange event (caused by the STOP command
  79. QuietSCSI issues), and there's *no* way to prevent it from doing that. All
  80. QuietSCSI can do about this is to queue all commands, and thus suspending
  81. the filesystem from further investigations. Other than with
  82. non-removable-media drives, there is no chance for an automatic restart,
  83. sorry.
  84.  
  85. · LUN numbers are correctly handled now. At least for device drivers being
  86. able to handle them properly.
  87.  
  88. · -h Option brings up the usage help text.
  89.  
  90. *** FAQ, COMMOM PROBLEMS SOLVED ***
  91.  
  92. · Please don't ask me whether there might be a chance of QuietSCSI to work
  93. on some AT/IDE-style devices. I simply don't know. QuietSCSI MAY work on
  94. those drives, IF the driver is designed to emulate some related SCSI
  95. commands AND if the drive used has some suitable command equivalents the
  96. driver software might want to call. If not, it probably _won't_ work. Try
  97. it. I tried it on my A1200 with a Seagate IDE drive. No go, ha! Don't blame
  98. me if it doesn't work. This software is intentionally named Quiet-S-C-S-I,
  99. not QuietIDE, nor QuietAT, nor QuietATAPI.
  100.  
  101. · To make QuietSCSI work on GVP hostadapter cards equipped with the new
  102. Guru-ROM (omniscsi.device) by Ralph Babel, put the following command in
  103. your startup sequence:
  104.  
  105.     OmniScsiCtrl <unit> NOSCSICMDINT
  106.  
  107. _before_ you start QuietSCSI. This topic is discussed in the Guru-ROM's
  108. user's manual FAQ chapter, too.
  109.  
  110. *******************
  111.  
  112. · Disclaimer
  113.  
  114. The author disclaims all warranties, expressed or implied, including, but
  115. not limited to, any implied warranties of merchantability and/or fitness
  116. for a particular purpose. The author does not warrant, guarantee or make
  117. any representations regarding the use of, or the output from, the program.
  118. You rely on the program and output solely at your own risk. In no event
  119. will the author be liable for any action, including lost profits,
  120. incidental or consequential damages arising out of the use or inability to
  121. use this software, exceed the possible shareware fee you paid for this
  122. software, even if the author or an authorized distributor of this software
  123. has been advised of the possibility of such damages.
  124.  
  125. · Distributing this program
  126.  
  127. This piece of software, including all accompanying files in the archive, is
  128. what some people tend to call »Freeware«. This implies:
  129.  
  130. This program may be freely DISTRIBUTED, by any means, as long as there are
  131. no charges specifically for the program. Charges for downloading from
  132. electronic BBS systems or network services, or charges for copying and
  133. media for freely redistributable software libraries are certainly
  134. permissible. The entire archive has to be left intact and unchanged. You
  135. must not distribute any changed or imcomplete set of the original archive.
  136.  
  137. · Using this program
  138.  
  139. This program may be USED for any purposes, commercial, personal, public,
  140. and private, as long as ALL of this text, all files, copyright, mailing
  141. address, and this notice are retained in their entirety. It is provided
  142. without warranty of any kind, so use it at your own risk!
  143.  
  144. This piece of software, which includes all accompanying files in the
  145. archive, is what some people tend to call »Giftware«. This implies:
  146.  
  147.     · You may use it as often as you like
  148.  
  149.     · You may use it as long as you like
  150.  
  151.     · You are *NOT* obliged to pay anything for using it
  152.  
  153.     · You *can* send a donation to the author, if you feel
  154.       so or if you like to do so
  155.  
  156.     · If you like to send a donation to the author, you can pay any
  157.       amount you think that this piece of software is worth it
  158.  
  159.     · Thank you for supporting a poor programmer, who still insists in
  160.       writing quality amiga software ;-)
  161.  
  162.  
  163. · What this program actually does
  164.  
  165. · The problem
  166.  
  167. Do you remember your first Amiga 1000 computer? Everybody asked you 'Is it
  168. really on' when they saw it first, since it was so q-u-i-e-t. I'll never
  169. forget that perfect feeling having a nice, quiet computer on my desk. Nine
  170. years later! Computers make noise. Computers which contains a harddisk make
  171. even more noise. Computers containing several harddisks make even much more
  172. noise. And they burn energy! Today, people spend a lot of $$$ to buy
  173. themselves screen blankers. And cooling fans which make less noise than the
  174. el-cheapo thingies all power supply manufacturers use. Oh well, everybody
  175. has a low power monitor and computer. But nobody realized, that a harddisk
  176. spins most time of the day without reading or writing a single byte! It
  177. just spins, burns a lot of energy, and makes noise.
  178.  
  179. Can you sleep in the same room when your computer is on? I can not! The
  180. harddisks make too much noise. Well, the power supply fan makes noise, too.
  181. But since I got a temperature controlled model, I can stand it much better.
  182. And there's another problem. The power led. Yes, it's so bright that I can
  183. read books!
  184.  
  185. · The solution
  186.  
  187. Speaking of SCSI harddisks, there is a mechanism to switch the motor off.
  188. It will just stop to spin as if you switched your computer off. But the
  189. drive is not dead. It's just q-u-i-e-t. It won't allow you to read or write
  190. data, though. But the controller electronic on the harddisk is still alive,
  191. and it might get a command to restart the drive at any time. Then it will
  192. behave just as if you switched your computer on. The motor will spin up
  193. again, and the drive will be ready to read or write data.
  194.  
  195. This little program does exactly this. It monitors all read and write
  196. accesses to the drive. It also monitors all input events. If there is
  197. inactivity for a certain period of time, it will spin down the drive motor
  198. and dim the power led. If the next command arrives, it will spin up the
  199. motor and switch to led back to bright.
  200.  
  201. In other words: Leave your amiga alone for some time, and it will switch
  202. the harddisk's motor and the power led OFF. Come back to your amiga after a
  203. while, continue your work. You won't realize any difference, the harddisk
  204. is still quiet. But the next time you try to read or write data from the
  205. drive, it will switch the power led and the motor ON, and your harddisk
  206. will spin up again. That's the whole magic. It save energy, and it saves
  207. noise.
  208.  
  209. Maybe you run a BBS and only 2-3 users will log in during night? Or your
  210. computer is alive to catch FAXes all nights, which will only happen once a
  211. week or so? So this is for you!
  212.  
  213. · Starting the program
  214.  
  215. This one is really easy to use. Just put it to your startup-sequence (or
  216. even better: user-startup):
  217.  
  218.     RUN <NIL: >NIL: quietscsi [-h] <device> <unit> <seconds>
  219.  
  220. where
  221.  
  222.     <device> is the name of your SCSI driver, e.g. scsi.device,
  223. or gvpscsi.device. Default is "scsi.device".
  224.  
  225.     <unit> is the unit number where you harddisk is connected to. You
  226. can figure this out by starting HDToolBox, for example. Default is 6.
  227.  
  228.     <seconds> is the number of seconds for the inactivity timeout.
  229. Default is 900 for approx. 1/4 hour, maybe you'd like another value. You
  230. shouldn't choose the value too low, though. Switching the motor off and on
  231. very often burns more energy and shortens your harddisk's lifetime (Well,
  232. don't go nuts about that ;-)). In the current release, the timer is quite
  233. inaccurate, since it doesn't compares with the system clock, just counts
  234. timer requests of one second. So it may vary, maybe 900 means 16, 17 or
  235. even 18 minutes. It is guaranteed to count always some seconds more, but
  236. never less. This isn't a big problem in general. I was just too lazy to fix
  237. it, maybe in the next release ;-).
  238.  
  239.     [-h] is optional and will bring up the default help text.
  240.  
  241. · Quitting the program
  242.  
  243. You might want to try to send a <Ctrl>-<C> signal to the process. Either by
  244. typing that to the shell you started it from (but that's not the way you
  245. should do it, since it blocks a window), or by using the shell command
  246. »break«. This *may* remove the patch. It is not guaranteed that it will
  247. succeed, since there might be some requests in the queue which need to be
  248. handled first. Just try a while later. Anyway, there shouldn't be a need to
  249. remove the patch while your system is alive. I merely added that option for
  250. debugging purposes. Well, maybe I shouldn't have told you that at all ;-).
  251. Don't bother me if you encounter problems related to this.
  252.  
  253. · Things to do
  254.  
  255. You can send me a donation if you like. That's what *you* can do ;-).
  256.  
  257. Now the things that *I* plan to do when I notice that some people like my
  258. program:
  259.  
  260.     · More accuracy for the timer
  261.  
  262.     · Add TSR startup code
  263.  
  264.     · Add some more command line options
  265.  
  266.     · Find a new girlfriend
  267.  
  268.     · Implement a commodity interface, perhaps a GUI which lets
  269.       the user switch the drives off and on, select an new
  270.       timeout and all those useful and marvellous things
  271.  
  272.     · (...)
  273.  
  274. Maybe you have some more ideas! Let me know. Have fun using QuietSCSI, I
  275. use it all the day. It's small, but it's probably one of the most useful
  276. tools I ever wrote.
  277.  
  278. <EOT>
  279.  
  280.